import { BrowserRouter as Router } from 'react-router-dom';

// 包裹一个路由组件
const RouterWrapper = (component: any) => {
  const innerCom = () => {
    return <Router>{component}</Router>;
  };

  return innerCom;
};

export default RouterWrapper;
